package com.meichis.mcsappframework.entity;

import com.google.gson.Gson;
import com.meichis.mcsappframework.encrypt.AESProvider;

public class WSIRequestPack {
	// / <summary>
	// / 方法调用序列号
	// / </summary>
	private int Sequence = 0;
	// / <summary>
	// / 调用服务编码
	// / </summary>
	private String Method = "";

	// / <summary>
	// / 客户端设备编号
	// / </summary>
	private String DeviceCode = "";

	// / <summary>
	// / 授权码
	// / </summary>
	private String AuthKey = "";

	// / <summary>
	// / 参数列表(Json格式)
	// / </summary>
	private String Params = "";

	public int getSequence() {
		return Sequence;
	}

	public void setSequence(int sequence) {
		Sequence = sequence;
	}

	public String getMethod() {
		return Method;
	}

	public void setMethod(String method) {
		Method = method;
	}

	public String getDeviceCode() {
		return DeviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		DeviceCode = deviceCode;
	}

	public String getAuthKey() {
		return AuthKey;
	}

	public void setAuthKey(String authKey) {
		AuthKey = authKey;
	}

	public String getParams() {
		return Params;
	}

	public void setParams(String params) {
		Params = params;
	}

	public String ToJsonString() {
		return new Gson().toJson(this);
	}

	public String ToAesJsonString() {
		return AESProvider.encrypt(ToJsonString());
	}

	///	压缩标志 Y:压缩
	private String CompressFlag="";
	public String getCompressFlag() {
		return CompressFlag;
	}
	public void setCompressFlag(String compressFlag) {
		CompressFlag = compressFlag;
	}
}
